package nojava;

public class RunnableA implements Runnable{
    private Dog dog;

    public RunnableA(Dog dog) {
        this.dog = dog;
    }

    @Override
    public void run() {
        dog.fn1();
    }
}
